#ifndef _PLAYER_H_
#define _PLAYER_H_
#include <unistd.h>
#include <DynamicArray.h>
#include "Scene.h"
#include "Prop.h"

struct Player
{
    int hp;
    int attack;
    int x;
    int y;
    char symbol; 
    int exp;
    int level;
    int golden;

    //weapon *w;
    //背包系统
    DArray bag;
};

typedef struct Player player;

void InitPlayer(player *p);
void PlayerMove(player *p ,char (*map)[MAPSIZE]);
void PrintPlayer(player *p);
void LevelUp(player *p);

void ShopInterFace(player *p);
void ShowBag(player *p);

#endif